Xbasic
Array age Method
Syntax
N age = <array>.age()
Returns
- ageNumeric
Returns the array's age.
Description
Get array's changed counter.
Discussion
The <array>.age() method returns the array age semaphore, which reflects the number of changes made to the array since its creation.
Example
dim arrc[0] as c arrc[arrc.append()] = "fred" ? arrc.age() = 1 arrc[arrc.append()] = "joe" ? arrc.age() = 2 ? arrc.dump() = fred joe
For property arrays, you must call <array>.touch() to update the array's age semaphore.
See Also